package com.dco.signature.repository;


import com.dco.signature.model.Signature;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SignatureRepository extends JpaRepository<Signature, Long> {
    List<Signature> findByRepoUrl(String repoUrl);
    boolean existsByRepoUrlAndEmail(String repoUrl, String email);
    boolean existsByRepoUrlAndNameAndEmail(String repoUrl, String name, String email);

}
